package model;

import java.util.Date;

public class Message {
	private Integer id;
	private Integer senderid;
	private Integer status; // 1.草稿，2.已发送，3.删除
	private String sendername;
	private String title;
	private String content;
	private Date sendtime;
	private Date lasttime;
	private String attach;
	private String attachname;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getSenderid() {
		return senderid;
	}
	public void setSenderid(Integer senderid) {
		this.senderid = senderid;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getSendername() {
		return sendername;
	}
	public void setSendername(String sendername) {
		this.sendername = sendername;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getSendtime() {
		return sendtime;
	}
	public void setSendtime(Date sendtime) {
		this.sendtime = sendtime;
	}
	public Date getLasttime() {
		return lasttime;
	}
	public void setLasttime(Date lasttime) {
		this.lasttime = lasttime;
	}
	
	
	public String getAttach() {
		return attach;
	}
	public void setAttach(String attach) {
		this.attach = attach;
	}
	public String getAttachname() {
		return attachname;
	}
	public void setAttachname(String attachname) {
		this.attachname = attachname;
	}
	@Override
	public String toString() {
		return "Message [id=" + id + ", senderid=" + senderid + ", status="
				+ status + ", sendername=" + sendername + ", title=" + title
				+ ", content=" + content + ", sendtime=" + sendtime
				+ ", lasttime=" + lasttime + ", attach=" + attach
				+ ", attachname=" + attachname + "]";
	}
	
	
}
